<#assign assign_ClassName = content.items.entity.className>
package ${content.items.entity.packageName};
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
<#if content.content.imports??>
	<#list content.content.imports as impt>
import ${impt};
	</#list>
</#if>

/**
 * <#if content.content.remark??>${content.content.remark}</#if>
 * @author liuyandeng
 */
<#if content.content.annotations??>
	<#list content.content.annotations as anno>
${anno}
	</#list>
</#if>
@Data
@Schema(name = "<#if content.content.remark??>${content.content.remark}</#if>")
public class ${assign_ClassName}  implements Serializable   {
	<#list content.content.fields as item>
	<#if item.annotations??>
		<#list item.annotations as anno>
	${anno}
		</#list>
	</#if>
	<#if item.primary == true>
	@NotNull(message = "${item.fieldRemark?default("")}为空")
	<#if item.fieldRemark??>
	@Schema(name = "${item.fieldRemark}")
	</#if>
	private ${item.fieldType} ${item.fieldName};
	<#else>
	<#if item.fieldRemark??>
	@Schema(name = "${item.fieldRemark}")
	</#if>
	private ${item.fieldType} ${item.fieldName};
	</#if>
	</#list>
}
